package com.ebookstore.dto;

public class Lineitem extends BaseDTO {

  // Fields

  private Integer lineitemId;

  private Integer orderId;

  private Integer itemId;

  private Integer quantity;

  private Double  unitprice;

  // Constructors

  /** default constructor */
  public Lineitem() {
  }

  /** full constructor */
  public Lineitem(Integer orderId, Integer itemId, Integer quantity, Double unitprice) {
    this.orderId = orderId;
    this.itemId = itemId;
    this.quantity = quantity;
    this.unitprice = unitprice;
  }

  // Property accessors

  public Integer getLineitemId() {
    return this.lineitemId;
  }

  public void setLineitemId(Integer lineitemId) {
    this.lineitemId = lineitemId;
  }

  public Integer getOrderId() {
    return this.orderId;
  }

  public void setOrderId(Integer orderId) {
    this.orderId = orderId;
  }

  public Integer getItemId() {
    return this.itemId;
  }

  public void setItemId(Integer itemId) {
    this.itemId = itemId;
  }

  public Integer getQuantity() {
    return this.quantity;
  }

  public void setQuantity(Integer quantity) {
    this.quantity = quantity;
  }

  public Double getUnitprice() {
    return this.unitprice;
  }

  public void setUnitprice(Double unitprice) {
    this.unitprice = unitprice;
  }

}
